export default {
  get UserToken() {
    return sessionStorage.getItem('token')
  },
  set UserToken(value) {
    sessionStorage.setItem('token', value)
  },
  get UserInfo() {
    return sessionStorage.getItem('account')
  },
  set UserInfo(value) {
    sessionStorage.setItem('account', value)
  },
  get userMenu() {
    return JSON.parse(sessionStorage.getItem('userMenu'))
  },
  set userMenu(value) {
    sessionStorage.setItem('userMenu', value)
  },
  get deviceList() {
    let result = JSON.parse(sessionStorage.getItem('deviceName'))
    return result
  },
  set deviceList(value) {
    sessionStorage.setItem('deviceName', JSON.stringify(value))
  },
  // deviceList: []
}